<%@page import="aex.domain.ArticleCategory"%>
<%@page import="aex.domain.Article"%>
<%@page import="aex.service.ShowViewService"%>
<%@page import="aex.util.SSHUtil"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="aex.domain.Puser"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
WebApplicationContext ac = SSHUtil.getApplication(request);
ShowViewService svService = (ShowViewService) ac.getBean(ShowViewService.SERVICE_NAME);
%>

<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta name="keywords" content="${webKeyWord}">
	<meta name="description" content="${webDescription}" />
	<title> ${webTitle} </title>
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
  	
	<link rel="stylesheet" type="text/css" href="expandStyle/aex_userPage.css">
	<link rel="stylesheet" type="text/css" href="expandStyle/search.css" />
	<link rel="stylesheet" type="text/css" href="systemStyle/h-ui.css" />
	
	
	<script type="text/javascript" src="systemJs/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="systemJs/H-ui.admin.js"></script>
	<script type="text/javascript" src="expandStyle/aex_userPage.js"></script>
	</head>
  <body>
    
    <!--导航栏-->
    
    <%
    	Puser user=(Puser)request.getSession().getAttribute("user");
    	if(user==null){
    		%>
    			<jsp:include page="/systemPage/headNavVisitor1.jsp"></jsp:include>		
    		<%
    	}else{
    		%>
				<jsp:include page="/systemPage/headNavVisitor2.jsp"></jsp:include>
    		<%
    	}
    %>
	
	
	<!--主要内容-->
  <div class="container">
        <!--全站搜索--> 
        <div class="search_info">
           <form action="visitor/visitor_serch.do?serchType=1" method="post" class='serchFrom'  >
            <div id="search_box">
                <h2>全站搜索</h2>
               <div>
               
              <input name='keyWord' value="${keyWord }" class='input-text search_con' placeholder='主题|用户|药品|疗法'>
	  			<input type="submit"  value="搜索" class='search_btn'>
               
               </div>
          
          
           </div>
          <ul class="search_menu">
                <li><a onclick='serch(1)' href="javascript:void(0);" >相关话题</a></li>
                <li><a onclick='serch(2)' href="javascript:void(0);" id="menu_up">相关用户</a></li>
                <li><a onclick='serch(3)' href="javascript:void(0);">相关药物</a></li>
                <li><a onclick='serch(4)' href="javascript:void(0);">相关疗法</a></li>
          </ul>
           </form>
           <script type="text/javascript">
           	function serch(type){
           		var form=$('.serchFrom');
           		var action='visitor/visitor_serch.do?';
           		if(type==2){
					form.attr('action',action+'serchType=2');
           		}else if(type==3){
           			form.attr('action',action+'serchType=3');
           		}else if(type==4){
           			form.attr('action',action+'serchType=4');
           		}
           		$('.serchFrom').submit();
           	}
           </script>
           
           
        </div>
        <div class="search_contentBox">
         <div id="active_usersBox">
           <ul>
              <c:forEach var="item" items="${list}" varStatus="status">  
              <li>
                <img src="${item.puPhoto}" width="50px" height="50px" >
                <div><a href="visitor/visitor_herHome.do?id=${item.puId}">${item.puName}</a></div>
              </li>
               </c:forEach>
           </ul>
        </div>
      </div>
      
 	 </div>
	
    <!--网站底部-->
	<jsp:include page="/systemPage/footerVisitor.jsp"></jsp:include>
  </body>
</html>
